package com.hixtrip.sample.app.api;

import com.hixtrip.sample.client.common.R;
import com.hixtrip.sample.client.order.dto.CommandOderCreateDTO;
import com.hixtrip.sample.client.order.dto.CommandPayDTO;

/**
 * 订单的service层
 */
public interface OrderService {

    /**
     * 用户下单
     */
    R<Void> createOrder(CommandOderCreateDTO commandOderCreateDTO);

    /**
     * 支付成功
     */
    R<Void> payOk(CommandPayDTO commandPayDTO);
    R<Void> payERROR(CommandPayDTO commandPayDTO);
}
